package com.gxuwz.attend.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

public class Leave {
    private String leaveID;
    private String courseID;
    private String reason;
    private int daynum;
    private String stuNo;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String applytime;
    private String status;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String audittime;
    private String opinion;


    public Leave() {
    }

    public Leave(String leaveID, String courseID, String reason, int daynum, String stuNo, String applytime, String status, String audittime, String opinion) {
        this.leaveID = leaveID;
        this.courseID = courseID;
        this.reason = reason;
        this.daynum = daynum;
        this.stuNo = stuNo;
        this.applytime = applytime;
        this.status = status;
        this.audittime = audittime;
        this.opinion = opinion;
    }

    /**
     * 获取
     * @return leaveID
     */
    public String getLeaveID() {
        return leaveID;
    }

    /**
     * 设置
     * @param leaveID
     */
    public void setLeaveID(String leaveID) {
        this.leaveID = leaveID;
    }

    /**
     * 获取
     * @return courseID
     */
    public String getCourseID() {
        return courseID;
    }

    /**
     * 设置
     * @param courseID
     */
    public void setCourseID(String courseID) {
        this.courseID = courseID;
    }

    /**
     * 获取
     * @return reason
     */
    public String getReason() {
        return reason;
    }

    /**
     * 设置
     * @param reason
     */
    public void setReason(String reason) {
        this.reason = reason;
    }

    /**
     * 获取
     * @return daynum
     */
    public int getDaynum() {
        return daynum;
    }

    /**
     * 设置
     * @param daynum
     */
    public void setDaynum(int daynum) {
        this.daynum = daynum;
    }

    /**
     * 获取
     * @return stuNo
     */
    public String getStuNo() {
        return stuNo;
    }

    /**
     * 设置
     * @param stuNo
     */
    public void setStuNo(String stuNo) {
        this.stuNo = stuNo;
    }

    /**
     * 获取
     * @return applytime
     */
    public String getApplytime() {
        return applytime;
    }

    /**
     * 设置
     * @param applytime
     */
    public void setApplytime(String applytime) {
        this.applytime = applytime;
    }

    /**
     * 获取
     * @return status
     */
    public String getStatus() {
        return status;
    }

    /**
     * 设置
     * @param status
     */
    public void setStatus(String status) {
        this.status = status;
    }

    /**
     * 获取
     * @return audittime
     */
    public String getAudittime() {
        return audittime;
    }

    /**
     * 设置
     * @param audittime
     */
    public void setAudittime(String audittime) {
        this.audittime = audittime;
    }

    /**
     * 获取
     * @return opinion
     */
    public String getOpinion() {
        return opinion;
    }

    /**
     * 设置
     * @param opinion
     */
    public void setOpinion(String opinion) {
        this.opinion = opinion;
    }

    public String toString() {
        return "Leave{leaveID = " + leaveID + ", courseID = " + courseID + ", reason = " + reason + ", daynum = " + daynum + ", stuNo = " + stuNo + ", applytime = " + applytime + ", status = " + status + ", audittime = " + audittime + ", opinion = " + opinion + "}";
    }
}
